package com.cli.apisdk.amapapi;

import com.cli.apisdk.interceptor.Token;
import com.github.lianjiatech.retrofit.spring.boot.core.RetrofitClient;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @author: xiongmin
 * @since create by 2022/7/15 16:33
 */
@RetrofitClient(baseUrl = "${baseUrl.amap}")
@Token(token = "${token.amap}")
public interface GeoCodeApi {

    @GET("geocode/geo")
    String geo(@Query("address") String address);

    @GET("geocode/regeo")
    String regeo(@Query("location") String location);

}
